Actions: cancel on new commits #3733
Open
+18
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cancel Actions workflows on new commits
What changed?
Cancel Actions workflows on new commits.
Why was this change made?
Speed up CI, lower costs.
How was this change implemented?
vim
How did you validate the change?
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
See also: apache/kvrocks#664
Could also do something like https://gist.github.com/ericphanson/7340da7345e80cb037ce4bad5f3f70e0, but that introduces another dependency.
Release notes
Documentation Changes